<template>
	<view class="content">
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
		<button @click="getLists">点击获取</button>
		<up-button type="primary" text="确定">uview按钮</up-button>
	</view>
</template>

<script setup lang="ts">
	import { ref } from 'vue';
	import http from "../../api/index"

	const title = ref("你好")
	const getLists = async () : Promise<void> => {
		const data = await http.getUserInfo()
		console.log(data);
	}
</script>

<style lang="scss" scoped>

</style>